// 把json对象转为query字符串
export const objToQuery = (data: Record<string, string>) => {
  let query = ''
  for (let key in data) {
    query += `&${key}=${data[key]}`
  }
  return query
}
